package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel("秒杀活动与商品关系")
@TableName("sms_flash_promotion_product_relation")
public class SmsSpikeCommodity {
    @ApiModelProperty("秒杀活动与商品关系ID")
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("秒杀活动ID")
    @TableField(value = "flash_promotion_id")
    private Integer flashPromotionId;
    @ApiModelProperty("秒杀活动场次ID")
    @TableField(value = "flash_promotion_session_id")
    private Integer flashPromotionSessionId;
    @ApiModelProperty("产品ID")
    @TableField(value = "product_id")
    private Long productId;
    @ApiModelProperty("秒杀活动价格")
    @TableField(value = "flash_promotion_price")
    private BigDecimal flashPromotionPrice;
    @ApiModelProperty("秒杀活动商品数量")
    @TableField(value = "flash_promotion_count")
    private Integer flashPromotionCount;
    @ApiModelProperty("每人限购数量")
    @TableField(value = "flash_promotion_limit")
    private Integer flashPromotionLimit;
    @ApiModelProperty("排序值")
    @TableField(value = "sort")
    private Integer sort;
}
